package com.tamo.ppresta.exception;

import androidx.annotation.NonNull;

import com.hjq.http.exception.HttpException;
import com.tamo.ppresta.http.HttpData;

/**
 * @author yeyang
 * @name ppresta
 * @class name：com.tamo.ppresta.exception
 * @class describe
 * @time 2022/12/18 21:52
 * @change
 * @chang time
 * @class describe
 */
public final class ResultException extends HttpException {

    private final HttpData<?> mData;

    public ResultException(String message, HttpData<?> data) {
        super(message);
        mData = data;
    }

    public ResultException(String message, Throwable cause, HttpData<?> data) {
        super(message, cause);
        mData = data;
    }

    @NonNull
    public HttpData<?> getHttpData() {
        return mData;
    }
} 